// test.ts

import { MockMethod } from 'vite-plugin-mock'
export default [
  {
    url: '/api/ocenter/Touch/OrderDetail/index',
    method: 'post',
    response: ({ query }) => {
      return {
        status: 1,
        data: {
          orderInfo: {
            orderNum: '230213101651100711540603',
            createTime: '2023-03-07 17:12:51',
            payTypeName: '\u5176\u4ed6',
            orderType: 1,
            payStatus: 1,
            statusDesc: '\u5df2\u652f\u4ed8',
            isSend: 1,
            realPrice: '0',
            orderDevice: 7,
            payType: 301000,
            orderHint: '',
          },
          priceInfo: {
            originalPrice: 275,
            realPrice: '0',
            couponPrice: 0,
            promotionInfo: [],
            prepaidCardPrice: '275',
          },
          productInfo: [
            {
              productId: 1391727,
              productType: 100,
              productTag: '',
              productName:
                '\u4e00\u5e74\u7ea7\u8bed\u6587\u57f9\u8bad\u73ed\uff08\u6625\u4e0a2\u00b7\u90e8\u7f16\u7248\u00b7A+\uff09',
              productStatus: 0,
              showName:
                '2\u670816\u65e5-3\u670816\u65e5\u00b7\u6bcf\u5468\u56db18:30-20:05\u4e0a\u8bfe\u00b715\u8bfe\u65f6',
              subjectName: '\u8bed\u6587',
              totalSections: '5',
              mainTeacherName: ['\u4e8e\u6208\u5b50\u7426'],
              foreignTeacherName: [],
              resale: 275,
              productNum: 1,
              couponInfo: [],
              giveawayInfos: {
                goodsData: {
                  giftProductNum: 1,
                  allProducPrice: '0',
                  giftproductDesc:
                    '\u82e5\u7533\u8bf7\u9000\u8d39\u65f6\u8bb2\u4e49\u5df2\u7b7e\u6536\uff0c\u4f1a\u6263\u9664\u7b7e\u6536\u7684\u8bb2\u4e49\u8d39\u7528',
                  giftsDetails: [
                    {
                      giftProductId: 503650,
                      giftProductType: 101,
                      giftProductName:
                        '\u4e00\u5e74\u7ea7\u8bed\u6587\u57f9\u8bad\u73ed\uff08\u6625\u4e0a2\u00b7\u90e8\u7f16\u7248\u00b7A+\uff09',
                      giftProductStatus: '',
                      giftProductNum: 1,
                    },
                  ],
                  giftProductName: '\u8bb2\u4e49\u798f\u5229',
                },
                othersData: {
                  giftproductDesc:
                    '\u652f\u4ed8\u6210\u529f\u540e\uff0c\u5176\u4ed6\u8d60\u54c1\u53ca\u65f6\u53d1\u653e\u5230\u60a8\u7684\u8d26\u6237\u4e2d',
                  giftsDetails: [
                    {
                      giftType: 100,
                      giftTypeName: '\u8bfe\u7a0b',
                      giftProductNames: [
                        '\u4e00\u5e74\u7ea7\u8bed\u6587\u57f9\u8bad\u73ed\uff08\u77e5\u8bc6\u7cbe\u8bb2\u8bfe\uff09',
                      ],
                    },
                  ],
                  giftProductName: '\u5176\u4ed6\u8d60\u54c1',
                  giftProductNum: 1,
                },
              },
            },
            {
              productId: 1391727,
              productType: 100,
              productTag: '',
              productName:
                '\u4e00\u5e74\u7ea7\u8bed\u6587\u57f9\u8bad\u73ed\uff08\u6625\u4e0a2\u00b7\u90e8\u7f16\u7248\u00b7A+\uff09',
              productStatus: 0,
              showName:
                '2\u670816\u65e5-3\u670816\u65e5\u00b7\u6bcf\u5468\u56db18:30-20:05\u4e0a\u8bfe\u00b715\u8bfe\u65f6',
              subjectName: '\u8bed\u6587',
              totalSections: '5',
              mainTeacherName: ['\u4e8e\u6208\u5b50\u7426'],
              foreignTeacherName: [],
              resale: 275,
              productNum: 1,
              couponInfo: [],
              giveawayInfos: {
                goodsData: {
                  giftProductNum: 1,
                  allProducPrice: '0',
                  giftproductDesc:
                    '\u82e5\u7533\u8bf7\u9000\u8d39\u65f6\u8bb2\u4e49\u5df2\u7b7e\u6536\uff0c\u4f1a\u6263\u9664\u7b7e\u6536\u7684\u8bb2\u4e49\u8d39\u7528',
                  giftsDetails: [
                    {
                      giftProductId: 503650,
                      giftProductType: 101,
                      giftProductName:
                        '\u4e00\u5e74\u7ea7\u8bed\u6587\u57f9\u8bad\u73ed\uff08\u6625\u4e0a2\u00b7\u90e8\u7f16\u7248\u00b7A+\uff09',
                      giftProductStatus: '',
                      giftProductNum: 1,
                    },
                  ],
                  giftProductName: '\u8bb2\u4e49\u798f\u5229',
                },
                othersData: {
                  giftproductDesc:
                    '\u652f\u4ed8\u6210\u529f\u540e\uff0c\u5176\u4ed6\u8d60\u54c1\u53ca\u65f6\u53d1\u653e\u5230\u60a8\u7684\u8d26\u6237\u4e2d',
                  giftsDetails: [
                    {
                      giftType: 100,
                      giftTypeName: '\u8bfe\u7a0b',
                      giftProductNames: [
                        '\u4e00\u5e74\u7ea7\u8bed\u6587\u57f9\u8bad\u73ed\uff08\u77e5\u8bc6\u7cbe\u8bb2\u8bfe\uff09',
                      ],
                    },
                  ],
                  giftProductName: '\u5176\u4ed6\u8d60\u54c1',
                  giftProductNum: 1,
                },
              },
            },
            {
              productId: 1391727,
              productType: 100,
              productTag: '',
              productName:
                '\u4e00\u5e74\u7ea7\u8bed\u6587\u57f9\u8bad\u73ed\uff08\u6625\u4e0a2\u00b7\u90e8\u7f16\u7248\u00b7A+\uff09',
              productStatus: 0,
              showName:
                '2\u670816\u65e5-3\u670816\u65e5\u00b7\u6bcf\u5468\u56db18:30-20:05\u4e0a\u8bfe\u00b715\u8bfe\u65f6',
              subjectName: '\u8bed\u6587',
              totalSections: '5',
              mainTeacherName: ['\u4e8e\u6208\u5b50\u7426'],
              foreignTeacherName: [],
              resale: 275,
              productNum: 1,
              couponInfo: [],
              giveawayInfos: {
                goodsData: {
                  giftProductNum: 1,
                  allProducPrice: '0',
                  giftproductDesc:
                    '\u82e5\u7533\u8bf7\u9000\u8d39\u65f6\u8bb2\u4e49\u5df2\u7b7e\u6536\uff0c\u4f1a\u6263\u9664\u7b7e\u6536\u7684\u8bb2\u4e49\u8d39\u7528',
                  giftsDetails: [
                    {
                      giftProductId: 503650,
                      giftProductType: 101,
                      giftProductName:
                        '\u4e00\u5e74\u7ea7\u8bed\u6587\u57f9\u8bad\u73ed\uff08\u6625\u4e0a2\u00b7\u90e8\u7f16\u7248\u00b7A+\uff09',
                      giftProductStatus: '',
                      giftProductNum: 1,
                    },
                  ],
                  giftProductName: '\u8bb2\u4e49\u798f\u5229',
                },
                othersData: {
                  giftproductDesc:
                    '\u652f\u4ed8\u6210\u529f\u540e\uff0c\u5176\u4ed6\u8d60\u54c1\u53ca\u65f6\u53d1\u653e\u5230\u60a8\u7684\u8d26\u6237\u4e2d',
                  giftsDetails: [
                    {
                      giftType: 100,
                      giftTypeName: '\u8bfe\u7a0b',
                      giftProductNames: [
                        '\u4e00\u5e74\u7ea7\u8bed\u6587\u57f9\u8bad\u73ed\uff08\u77e5\u8bc6\u7cbe\u8bb2\u8bfe\uff09',
                      ],
                    },
                  ],
                  giftProductName: '\u5176\u4ed6\u8d60\u54c1',
                  giftProductNum: 1,
                },
              },
            },
          ],
          operateInfo: {
            operateStatus: 2,
            operateText: '立即支付',
            operateHref: '/#/payStatus?X-Businessline-Id=30&orderNum=230130183106100186896267',
          },
          addressInfo: {
            stu_id: 2100060603,
            name: '\u5f20\u6ce2',
            phone: '156****0958',
            address: '\u6d4b\u8bd5',
            province_id: '1',
            city_id: '1',
            county_id: '1',
            province: '\u5317\u4eac\u5e02',
            city: '\u5e02\u8f96\u533a',
            region: '\u4e1c\u57ce\u533a',
          },
          expressInfo: [],
          orderPrice: 275,
        },
      }
    },
  },
  {
    url: '/api/ocenter/Touch/OrderList/index',
    method: 'post',
    response: ({ query }) => {
      return {
        status: 1,
        data: {
          total: 20,
          curpage: 1,
          perpage: 5,
          list: [
            {
              orderNum: '230213101651100711540603',
              createTime: '2023-02-13 10:16:51',
              isSend: 1,
              status: 1,
              orderType: 1,
              statusDesc: '已支付',
              productInfos: [
                {
                  productType: 100,
                  productId: 1391727,
                  productTag: '',
                  productName: '一年级语文培训班（春上2·部编版·A+）',
                  termName: '春上',
                  subjectName: '语文',
                  showName: '2月16日-3月16日·每周四18:30-20:05上课·15课时',
                  totalSections: '5',
                  productHref: 'https://bcc.xiwang.com/course-detail/1391727',
                  teacherInfos: [
                    {
                      teacherName: '于戈子琦',
                      avatar:
                        'https://static7.saasz.vdyoo.com/teacher/trm/1644979913054_1638934222630.png',
                      teacherType: '1',
                      href: 'https://bcc.xiwang.com/t/yugeziqi',
                    },
                  ],
                  foreignInfos: [],
                  realPrice: '0',
                  giveawayInfos: [
                    {
                      productName: '讲义福利',
                      productNum: 1,
                    },
                    {
                      productName: '其他赠品',
                      productNum: 1,
                    },
                  ],
                  productStatus: 0,
                  logisticsInfos: [
                    {
                      statusDesc: '待发货',
                      num: '1',
                    },
                  ],
                  productNum: 1,
                  couponInfo: [],
                },
                {
                  productType: 100,
                  productId: 1390411,
                  productTag: '',
                  productName: '一年级语文培训班（春上2·部编版·A+）',
                  termName: '春上',
                  subjectName: '语文',
                  showName: '2月16日-3月16日·每周四18:30-20:05上课·15课时',
                  totalSections: '5',
                  productHref: 'https://bcc.xiwang.com/course-detail/1391727',
                  teacherInfos: [
                    {
                      teacherName: '于戈子琦',
                      avatar:
                        'https://static7.saasz.vdyoo.com/teacher/trm/1644979913054_1638934222630.png',
                      teacherType: '1',
                      href: 'https://bcc.xiwang.com/t/yugeziqi',
                    },
                  ],
                  foreignInfos: [],
                  realPrice: '0',
                  giveawayInfos: [
                    {
                      productName: '讲义福利',
                      productNum: 1,
                    },
                    {
                      productName: '其他赠品',
                      productNum: 1,
                    },
                  ],
                  productStatus: 0,
                  logisticsInfos: [
                    {
                      statusDesc: '待发货',
                      num: '1',
                    },
                  ],
                  productNum: 1,
                  couponInfo: [],
                },
                {
                  productType: 100,
                  productId: 13904144,
                  productTag: '',
                  productName: '一年级语文培训班（春上2·部编版·A+）',
                  termName: '春上',
                  subjectName: '语文',
                  showName: '2月16日-3月16日·每周四18:30-20:05上课·15课时',
                  totalSections: '5',
                  productHref: 'https://bcc.xiwang.com/course-detail/1391727',
                  teacherInfos: [
                    {
                      teacherName: '于戈子琦',
                      avatar:
                        'https://static7.saasz.vdyoo.com/teacher/trm/1644979913054_1638934222630.png',
                      teacherType: '1',
                      href: 'https://bcc.xiwang.com/t/yugeziqi',
                    },
                  ],
                  foreignInfos: [],
                  realPrice: '0',
                  giveawayInfos: [
                    {
                      productName: '讲义福利',
                      productNum: 1,
                    },
                    {
                      productName: '其他赠品',
                      productNum: 1,
                    },
                  ],
                  productStatus: 0,
                  logisticsInfos: [
                    {
                      statusDesc: '待发货',
                      num: '1',
                    },
                  ],
                  productNum: 1,
                  couponInfo: [],
                },
                {
                  productType: 100,
                  productId: 1390455,
                  productTag: '',
                  productName: '一年级语文培训班（春上2·部编版·A+）',
                  termName: '春上',
                  subjectName: '语文',
                  showName: '2月16日-3月16日·每周四18:30-20:05上课·15课时',
                  totalSections: '5',
                  productHref: 'https://bcc.xiwang.com/course-detail/1391727',
                  teacherInfos: [
                    {
                      teacherName: '于戈子琦',
                      avatar:
                        'https://static7.saasz.vdyoo.com/teacher/trm/1644979913054_1638934222630.png',
                      teacherType: '1',
                      href: 'https://bcc.xiwang.com/t/yugeziqi',
                    },
                  ],
                  foreignInfos: [],
                  realPrice: '0',
                  giveawayInfos: [
                    {
                      productName: '讲义福利',
                      productNum: 1,
                    },
                    {
                      productName: '其他赠品',
                      productNum: 1,
                    },
                  ],
                  productStatus: 0,
                  logisticsInfos: [
                    {
                      statusDesc: '待发货',
                      num: '1',
                    },
                  ],
                  productNum: 1,
                  couponInfo: [],
                },
              ],
              orderHint: '',
              presaleOrderInfo: [],
              realPrice: 0,
              logisticsTrace: [],
              needEditAddress: 0,
              orderPrice: 275,
            },
          ],
          orderListFilter: [
            {
              filterNum: 1,
              displayName: '近一年',
            },
            {
              filterNum: 0,
              displayName: '全部年份',
            },
          ],
        },
      }
    },
  },
] as MockMethod[]
